(define-module (xf86-input-mtrack)
  #:use-module (guix packages)
  #:use-module (guix download)
  #:use-module (guix build-system gnu)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (gnu packages pkg-config)
  #:use-module (gnu packages xdisorg)
  #:use-module (gnu packages xorg))

(define-public xf86-input-mtrack
  (package
    (name "xf86-input-mtrack")
    (version "0.3.1")
    (source (origin
              (method url-fetch)
              (uri (string-append "https://github.com/BlueDragonX/"
                                name "/archive/v" version ".tar.gz"))
              (sha256
               (base32
                "1wa0s2r8sb8vsza882w4pkmbi738g06zfrykd09dv3hjwjikh4g3"))))
    (build-system gnu-build-system)
    (inputs `(("mtdev" ,mtdev)
              ("xorg" ,libx11)
              ("zorg-server" ,xorg-server)
              ("inputproto" ,inputproto)))
    (native-inputs `(("pkgconfig" ,pkg-config)))
    (synopsis "Multitouch trackpad driver")
    (description "An Xorg driver for multitouch trackpads.  Supports any
trackpad whose kernel driver uses the slotted multitouch protocol.")
    (home-page "https://github.com/BlueDragonX/xf86-input-mtrack")
    (license license:gpl2)))
